﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

/*
 * AssetCollections are containers for groups of assets, such as all assets that are just used for the hero 
 * (ie hero's run sprite sheet, hero's jump spritesheet)
 */
public class AudioAssetCollection
{
    public Dictionary<String, AudioAsset> assets;

    /* 
     * the contructor initializes the assets dicitonary object
     */
    public AudioAssetCollection()
    {
        assets = new Dictionary<String, AudioAsset>();
    }

    /*
     * adds an asset to the assets dictionary object 
     */
    public void addAsset(String assetName, AudioAsset asset)
    {
        assets.Add(assetName, asset);
    }

    /*
     * returns the asset with the given assetName
     */
    public AudioAsset get(String assetName)
    {
        return (AudioAsset)assets[assetName];
    }

}

